package com.guang.runnable;
 
import cn.hutool.http.HttpRequest;
 
/**
 *  蚂蚁舞
 */
public class ThreadTest implements Runnable {
 
    private final int count;
    public ThreadTest(int count){
        this.count = count;
    }

    @Override
    public void run() {
        try {
            //  设置超时时间很大
            String result = HttpRequest.get("http://127.0.0.1:8081/demo/test/"+count).timeout(10000*1000).execute().body();;
            System.out.println(result);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}